package com.team11.server.pojo.dto.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "新增请假",description = "新增请假")
public class AddLeave {

    @ApiModelProperty(value = "主题")
    @TableField("l_theme")
    private String lTheme;

    @ApiModelProperty(value = "请假开始时间")
    @TableField("l_begin")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private LocalDateTime lBegin;

    @ApiModelProperty(value = "请假结束时间")
    @TableField("l_end")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private LocalDateTime lEnd;

    @ApiModelProperty(value = "请假原因")
    @TableField("l_reason")
    private String lReason;

    @ApiModelProperty(value = "请假具体原因")
    @TableField("l_jt_reason")
    private String lJtReason;

    @ApiModelProperty(value = "操作人id")
    @TableField("t_id")
    private Integer tId;
}
